package com.qinker.robot.hook.plugin.bot;

import android.app.Activity;

import com.qinker.robot.hook.Constant;
import com.qinker.robot.hook.data.model.PluginInfo;
import com.qinker.robot.hook.plugin.base.BasePlugin;
import com.qinker.robot.hook.plugin.interfaces.XPluginManager;
import com.qinker.robot.hook.ui.dialog.DingDingDialog;

/**
 * Created by Irany 2019/10/19 0019 15:56
 */
public class DingBotPlugin extends BasePlugin {
    public DingBotPlugin(XPluginManager pluginManager) {
        super(pluginManager);
    }

    @Override
    public Info getInfo() {
        return new PluginInfo(Constant.Plugin.DING_BOT, "钉钉机器人");
    }

    @Override
    public void onHandleLoadPackage() {

    }

    @Override
    public void openSettings(Activity activity) {
        DingDingDialog dialog = new DingDingDialog();
        dialog.show(activity.getFragmentManager(), "dingDing");
    }
}
